/*
*******************************************************************************************************
*
* File Name : spi.c
* Version   : V1.0
* Author    : mzy2364
* brief     : spi driver
* 
*******************************************************************************************************
*/
#ifndef _SPI_H_
#define _SPI_H_

#ifdef __cplusplus
extern "C"{
#endif

/* INCLUDE FILES ------------------------------------------------------------------------------------*/
#include "gd32f30x.h"


/* DEFINES ------------------------------------------------------------------------------------------*/


/* VARIABLES ----------------------------------------------------------------------------------------*/


/* FUNCTION -----------------------------------------------------------------------------------------*/
void spi0_init(void);
void spi2_init(void);
uint16_t spi0_transmit_receive_data(uint16_t data);
uint8_t spi2_transmit_receive_data(uint8_t data);

#ifdef __cplusplus
extern "C"{
#endif

#endif /* _SPI_H_ */

/***************************************** (END OF FILE) *********************************************/
